package com.briup.pts.mapper;


import com.briup.pts.domain.bean.IndexRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface IndexRecordMapper {

    IndexRecord queryByAnimalIdWithTime(@Param("animalId")String animalId, @Param("irdTime") LocalDateTime irdTime);

    void addIndexRecord(IndexRecord indexRecord);

    List<IndexRecord> queryByConditional(@Param("startWeight") Integer startWeight,
                                         @Param("endWeight") Integer endWeight);

    void batchDelete(@Param("irIds") List<Integer> ids);

    List<IndexRecord> queryByAnimalId(String animalId);

}
